<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	$return['item']=$this->plugin_setting('basic');
	$tip='寻求超级管理员，帮忙设置相关参数！';
	if($_SESSION['isfounder']){
		$tip .='
		</br>1、文档教程：https://opendocs.alipay.com/mini/00nyaq (<red>仅限超级管理员可见！</red>);
		</br>2、侧门店shop_id：代商家创建蚂蚁门店，获取支付宝侧门店shopid (<red>仅限超级管理员可见！</red>);
		';
	}
	$htmls=array(
		'type'=>'edit',
		'desc'=>'参数设置',
		'edit_tab'=>true,
		'edit'=>array(
			array('type'=>'tip','title'=>$tip),
			array('type'=>'string','title'=>'侧门店shopid','name'=>'merchant_shop_id','help'=>'寻求超级管理员，帮忙设置相关参数！'),
		),
	);
	if($_SESSION['isfounder']){
		$htmls['edit'][]=array('type'=>'string','title'=>'服务商的ID','name'=>'pid','help'=>'【温馨提示】：<red>仅限超级管理员可见！</red>');
	}
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
